package compiler;

import java.util.List;

public class CompilerException extends Exception {
 
  /**
   * Needed for some reason. 
   */
  private static final long serialVersionUID = -5846237648964540934L;
  
  /**
   * List of errors during compilation.
   */
  private List<String> errors;
  
  /**
   * 
   * @param message - additional description
   * @param err - list of compilation errors
   */
  public CompilerException(String message, List<String> err)
  {
    super(message);
    errors = err; 
  }
  
  /**
   * Returns semantic error list.
   * @return
   */
  public List<String> getErrors() {
    return errors;
  }
}
